﻿@model ConfigDashboard.Models.ValueViewModel

@{
    ViewBag.Title = "Delete Value";
}

<h2>Delete Value</h2>

<h3>@string.Format("Are you sure you want to delete {0} ({1} Environment)?", Model.SettingName.SettingName, Model.Environment.EnvironmentName)</h3>

<fieldset>
    <legend>Value</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Value.SettingValue)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Value.SettingValue)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        <a href="@(Url.Action("Index") + "#" + Model.SettingName.SettingName)">« Back to List of Values</a>
    </p>
}
